package com.shisfish.core.dto;

public class ResultDto<T> {
	
	private int resultCode; 
	private String resultMessage; 
	private T t;
	
	private static int DEFAULT_RESULT_CODE = 0;
	private static String DEFAULT_RESULT_MESSAGE = "operation success";
	
	public ResultDto() {
		super();
	}
	
	public ResultDto(T t) {
		super();
		this.resultCode = DEFAULT_RESULT_CODE;
		this.resultMessage = DEFAULT_RESULT_MESSAGE;
		this.t = t;
	}
	
	
	public ResultDto(int resultCode, String resultMessage) {
		super();
		this.resultCode = resultCode;
		this.resultMessage = resultMessage;
	}
	
	public int getResultCode() {
		return resultCode;
	}
	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}
	public String getResultMessage() {
		return resultMessage;
	}
	public void setResultMessage(String resultMessage) {
		this.resultMessage = resultMessage;
	}
	public T getT() {
		return t;
	}
	public void setT(T t) {
		this.t = t;
	}
	
	

}
